package com.laowang.project.system.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.laowang.project.system.mapper.MyCyhAdviceMapper;
import com.laowang.project.system.domain.MyCyhAdvice;
import com.laowang.project.system.service.MyCyhAdviceService;

/**
 * 意见与反馈Service业务层处理
 *
 * @author laowang
 * @date 2023-04-21
 */
@Service
public class MyCyhAdviceServiceImpl implements MyCyhAdviceService {
    @Autowired
    private MyCyhAdviceMapper myCyhAdviceMapper;

    /**
     * 查询意见与反馈
     *
     * @param id 意见与反馈ID
     * @return 意见与反馈
     */
    @Override
    public MyCyhAdvice selectMyCyhAdviceById(Integer id) {
        return myCyhAdviceMapper.selectMyCyhAdviceById(id);
    }

    /**
     * 查询意见与反馈列表
     *
     * @param myCyhAdvice 意见与反馈
     * @return 意见与反馈
     */
    @Override
    public List<MyCyhAdvice> selectMyCyhAdviceList(MyCyhAdvice myCyhAdvice) {
        return myCyhAdviceMapper.selectMyCyhAdviceList(myCyhAdvice);
    }

    /**
     * 新增意见与反馈
     *
     * @param myCyhAdvice 意见与反馈
     * @return 结果
     */
    @Override
    public int insertMyCyhAdvice(MyCyhAdvice myCyhAdvice) {

        return myCyhAdviceMapper.insertMyCyhAdvice(myCyhAdvice);
    }

    /**
     * 修改意见与反馈
     *
     * @param myCyhAdvice 意见与反馈
     * @return 结果
     */
    @Override
    public int updateMyCyhAdvice(MyCyhAdvice myCyhAdvice) {
        return myCyhAdviceMapper.updateMyCyhAdvice(myCyhAdvice);
    }

    /**
     * 批量删除意见与反馈
     *
     * @param ids 需要删除的意见与反馈ID
     * @return 结果
     */
    @Override
    public int deleteMyCyhAdviceByIds(Integer[] ids) {
        return myCyhAdviceMapper.deleteMyCyhAdviceByIds(ids);
    }

    /**
     * 删除意见与反馈信息
     *
     * @param id 意见与反馈ID
     * @return 结果
     */
    @Override
    public int deleteMyCyhAdviceById(Integer id) {
        return myCyhAdviceMapper.deleteMyCyhAdviceById(id);
    }
}
